<%@ page contentType="text/html;charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%@ include file="/include_head.jsp"%>

<table border="1" align="center">
<caption><h2>Problem Status List</h2></caption>
       <tr>
            <th>SolutionID</th>
            <th>User</th>
            <th>ProblemId</th>
            <th>Result</th> 
            <th>Memory</th> 
            <th>Time</th> 
            <th>Language</th> 
            <th>Code Length</th>
            <th>Submit Time</th>
       </tr>
       <s:iterator value="#request.solutionList" id="solution">
       <tr>
            <td><s:property value="#solution.solutionId"/></td>
            <td><s:property value="#solution.userId"/></td>
            <td><s:property value="#solution.problemId"/></td>
            <td><s:property value="#solution.result"/></td>
            <td><s:property value="#solution.memory"/></td>
            <td><s:property value="#solution.runtime"/></td>
            <td>
                 <s:if test="#solution.language==1">C  </s:if>
                 <s:elseif test="#solution.language==2">C++</s:elseif>
                 <s:elseif test="#solution.language==3">Java</s:elseif>
                 <s:elseif test="#solution.language==4">Pascal</s:elseif>
                 <s:else>其他语言</s:else>
            </td>
            <td><s:property value="#solution.codeLength"/></td>
            <td><s:property value="#solution.submitDate"/></td>
       </tr>
       </s:iterator>
</table>

<%@ include file="/include_end.jsp"%>